﻿using UnityEngine;
using UnityEngine.UI;

public class MainMenuScene : ISceneState
{
    public MainMenuScene(SceneStateController controller) : base(Definitions.MainMenuScene, controller)
    {
    }

    public override void StateStart()
    {
        GameObject.Find("btnStart").GetComponent<Button>().onClick.AddListener(OnBtnStartClick);
    }

    public override void StateUpdate()
    {
    }

    private void OnBtnStartClick()
    {
        mController.SetState(new BattleScene(mController));
    }
}